<template>
    <div>
        <h4 class="font-weight-bold">数据源管理</h4>
        <b-card class="mb-4">
            <Row :gutter="32">
                <i-col span="24" class="demo-tabs-style2">
                <Tabs type="card">
                    <TabPane icon="android-home" label="主数据">
                        <console-home></console-home>
                    </TabPane>
                    <TabPane icon="ios-gear" label="控制">
                        <console-settings></console-settings>
                    </TabPane>
                    <TabPane icon="log-in" label="入参">
                        <console-params></console-params>
                    </TabPane>
                    <TabPane icon="log-out" label="返回结果">
                        <console-result :parentOid="oid"></console-result>
                    </TabPane>
                    <TabPane icon="earth" label="平台调用日志">
                        <console-innerlog></console-innerlog>
                    </TabPane>
                    <TabPane icon="planet" label="数据源调用日志">
                        <console-outerlog></console-outerlog>
                    </TabPane>
                    <TabPane icon="ios-browsers" label="下探定义">
                        <console-define></console-define>
                    </TabPane>
                    <TabPane icon="stats-bars" label="统计">
                        <console-statistics></console-statistics>
                    </TabPane>
                </Tabs>
                </i-col>
            </Row>
        </b-card>
    </div>
</template>

<style>
.ivu-tabs-nav .ivu-tabs-tab .ivu-icon{
    margin-right: 0;
}

h5{
    margin-bottom: 0;
    font-weight: bold;
    font-size: 14px;
}
</style>


<script>
import ConsoleHome from './childPanel/Home'
import ConsoleSettings from './childPanel/Settings'
import ConsoleParams from './childPanel/Params'
import ConsoleResult from './childPanel/Result'
import ConsoleInnerLog from './childPanel/InnerLog'
import ConsoleOuterLog from './childPanel/OuterLog'
import ConsoleDefine from './childPanel/Define'
import ConsoleStatistics from './childPanel/Statistics'

export default {
    name: "OriginConsole",
    data() {
        return {
            data: [],
            oid: null
        };
    },
    components: {
        'console-home': ConsoleHome,
        'console-settings': ConsoleSettings,
        'console-params': ConsoleParams,
        'console-result': ConsoleResult,
        'console-innerlog': ConsoleInnerLog,
        'console-outerlog': ConsoleOuterLog,
        'console-define': ConsoleDefine,
        'console-statistics': ConsoleStatistics
    },
    beforeCreate(){
        this.oid = this.$route.query.oid;
        // console.log('Console beforeCreate',this.oid);
    },
    created(){
        this.oid = this.$route.query.oid;
        // console.log('Console create',this.oid);
    },
    methods: {
        getOid(){
            return this.oid;    
        }
    },
    beforMount(){
        // console.log('Console',this.oid);
        this.oid = this.$route.query.oid;
    }
};
</script>

